<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <!--  -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">中文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-enname" class="control-label col-xs-12 col-sm-2">英文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enname" data-rule="required" class="form-control" name="row[enname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-dir" class="control-label col-xs-12 col-sm-2">目录:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dir" data-rule="" class="form-control" name="row[dir]" type="text" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-pid" class="control-label col-xs-12 col-sm-2">上级模型:</label>
        <div class="col-xs-12 col-sm-8">
          <select id="c-pid" data-rule="" class="form-control selectpicker" name="row[pid]">
              <option value="0">请选择</option>
              {volist name="parentList" id="vo" key="k"}
                  {if $vo.pid eq 0}
                  <option value="{$vo.itemid}">{$vo.name}</option>
                  {/if}
              {/volist}
          </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-catid" class="control-label col-xs-12 col-sm-2">类别:</label>
        <div class="col-xs-12 col-sm-8 line3">
            <div id="jscategoryselect22" class="selects3" data-pid="0">
                <a class="arrow"><img alt="arrowbottom" src="http://qd.andiff.net/netimages/arrow_bottom.png" /></a>
                <span class='selected3'>请选择</span>
                <input type="hidden" id="catid" name="row[catid]" value="" />
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-filepath" class="control-label col-xs-12 col-sm-2">打包文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-filepath" class="form-control" name="row[filepath]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-image5" class="btn btn-danger" data-input-id="c-filepath" data-multiple="false">
                          <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                        <div id="html5_container" class="moxie-shim-html5">
                          <input id="upyun_upload" class="upyun_upload" type="file" accept=".rar,.zip" tabindex="-1" />
                        </div>
                    </span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <!-- <ul class="row list-inline plupload-preview" id="p-image"></ul> -->
        </div>
    </div>
    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">SQL文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-sqlpath" class="form-control" name="row[sqlpath]" type="text" value="" />
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="plupload-image6" class="btn btn-danger" data-input-id="c-sqlpath" data-multiple="false">
                          <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                        <div id="html5_container" class="moxie-shim-html5">
                          <input id="upyun_upload1" class="upyun_upload" type="file" accept=".sql" tabindex="-1" />
                        </div>
                    </span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <!-- <ul class="row list-inline plupload-preview" id="p-image"></ul> -->
        </div>
    </div>

    <div class="form-group">
        <label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[intro]" id="c-intro" cols="60" rows="5" class="form-control editor"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
